package cn.rokhdelar.ams.common.service;

import cn.rokhdelar.ams.common.domain.po.Attachment;
import cn.rokhdelar.ams.common.domain.vo.AttachmentVO;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.core.io.Resource;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author Rokhdelar
 * @since 2025/3/14 -- 15:53
 **/
public interface AttachmentService extends IService<Attachment> {
    AttachmentVO upload(MultipartFile file, String remark);

    List<AttachmentVO> uploads(MultipartFile[] file, String remark);

    Resource download(String id);

    Boolean delete(String id);
}
